



function foot() {
    let time = new Date();//日期类

    let year = time.getFullYear();
    let month = time.getMonth();
    let data = time.getDate();
    let hour = time.getHours();
    let minutes = time.getMinutes();
    let  second = time.getSeconds();

    postMessage(year + '-' + month + '-' + data + '-' +hour +':'+ minutes + ':' + second)

    setTimeout(foot ,1000);
}

foot();
